from globalVar import gloVar

def modify(modVal):
    gloVar.state = modVal   # 修改为modVal
    print('modify: state is {}'.format(gloVar.state))